projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cd77da
)
Remove, since floor and mod
author
Paul Eggert
<eggert@twinsun.com>
Tue, 10 Aug 1993 04:14:17 +0000
(
04:14
+0000)
committer
Paul Eggert
<eggert@twinsun.com>
Tue, 10 Aug 1993 04:14:17 +0000
(
04:14
+0000)
(caesar-region): Replace `%' by `mod' and simplify.
lisp/mail/rnews.el
patch
|
blob
|
history
diff --git
a/lisp/mail/rnews.el
b/lisp/mail/rnews.el
index d699bc55f7ff02fc92f76730f849d1dcd79837ae..5af007dd0404bafb0a745263edc8b1d0d2d5d58e 100644
(file)
--- a/
lisp/mail/rnews.el
+++ b/
lisp/mail/rnews.el
@@
-929,8
+929,7
@@
FName to link to message: ")
(list (prefix-numeric-value current-prefix-arg))
(list nil)))
(cond ((not (numberp n)) (setq n 13))
- ((< n 0) (setq n (- 26 (% (- n) 26))))
- (t (setq n (% n 26)))) ;canonicalize N
+ (t (setq n (mod n 26)))) ;canonicalize N
(if (not (zerop n)) ; no action needed for a rot of 0
(progn
(if (or (not (boundp 'caesar-translate-table))